Locking not done, need to send through messages. No errors on streamobject being null