Do you need the optObj variable at all?  The name is always the job name, correct?