Implemented map parsing.