Cleaning up protocol.