Implemented straight-forward protocol parser.