Updated Main.php