Interface should allow passing pointer to a generation method

This would allow easily sending a generation method from a main application for the framework to use.