Changed Main class.