Moved templates to template file.