Updated the main php file