Tried implementing templates.