Added autoloading for template.php