Added template attributes, so the templating system could be changed.