Update Main.php

This should work, but I haven't tested it.