Fixed Main class.