Implemented map parsing method