Implement templates.