Add option to poll messages until the queue is emptied