Improved index.php