Index.php revamped