Added function waitWhileFullQueue.