Moved the queue runner thing to its own module