Fixed the dequeueing of processes. See loadQueue for one other thing I want to make better.