Added a way to change the main class