Added cond waiting to new queue thread. Added in some more printfs (though they're currently commented out).