Moved read/write buffer into queue. Aweful