Finished plugin generation code