Added a rudimentary message parser.