Updated index.php with more code.