I now have wait queues working, will now put in more error checking