Moved buffer parsing to MessageParser.