Updating template.php helper functions and variables.