Main method now checks its name