Added support for parsing map hash and gateway. Added hack for parsing replay gateway.