Modified template.php