Last one function for index.php to work