Added ability to override the template