Removed console.log() in generate()