grr. Fixed bug when adding to queue we needed to use put intead of add.