Refactored templates.