[Code] Continued work on do_protocol command.