Code to report unfinished jobs