Adding templates and routing.