Removed custom functions from template.php