Implemented the templates.