Added a new template and the encoding thing