Adding some template helpers