Fixed generate script
Added some output to verify the generation