Fixed pure virtual declaration.
Changed writeMessage from Protocol.