Made MapLoader a class variable