Pass all arguments to a generator function