Reliably read messages from the queue into an array
Merge remote-tracking branch 'origin/master'