Updated _build_finished to nested funcitons
Updated createJob to use nested functions