Revised index.php