Main class now cleaned main method.