Changed the template and the class of outputs.