Adding function call path to index.php