Added thread to listen on read socket