Updated Main.hx.