Added the ability to add hooks when generating a model for more instance functionality