Implementing templates.