Updated to write jobID to tmp file