Cleaning up base template.