In fact at the end you can remove that part. I used it for testing and I though it could be useful. For sure I could not put a synch only for printing the queue.
Ok, remove it. Don't worry.