Added some nicer template helpers.