Update job_ids
Write masses in MC