Allow generators to be passed in a function
0.4.5