Cleaned up the code and removed debugging statements from the addMaps() method