Added a protocol check preprocessor