Moved the creation of theJob in inputData to the place where it is
needed.