Replaced text based protocol with gob based protocol.