Fix (hopefully) race conditions in Job.
Add printing for job flags.