Removed Unused classes and changed serverdown function