Changed Main class into a singleton to enable people to override actions