Callbacks support

You can now pass callbacks to generate