Added ByteBuffer event, allowing buffering to be done in a different thread.