Implement new serial protocol.