Added connection-detection to LoadMap function. Changed the protocol.