Adding some template code