Various bug fixes to the new job queue functionality.