Changed Collection<Message> to Queue<Message>, to make poll() simpler