Modified Function.php file