Updated template.py and the settings based on Sebastian's comments