Implemented templates.