Implementing template service.