Moved index.php code