Use async.waterfall in generate()