Optimize the project template code.