Added genmodel in the correct place this time