Converted job creation code