Seperated Main from MainGui: Resulting in Main and GUI.