Updated the read to handle data being deleted from the queue when it expires.