Setting main server class to singleton