Fixed issue where low priority threads would keep running if higher priority threads were added later.