Hooked C interface into protocol.py to demonstrate functionality