Finish a simple protocol generator.