Retrofitted new code into template file as instructed