Fix protocol errors + remove debugging.