Refactor queueing script just a bit.
Polish single-thread monkey code.