Main method moved to Main class.