Finished controller code generator.