Updated to use template.php