Added handling to more than one Main method