Fix a bunch of issues relating to saving list of job IDs