Try to combine addStageIDToJobID with addJobIDToStageIDs. They convey the same information and having two APIs make it more error-prone.