Changed the way the readyQueue is checked for items.