Job execution embedded in a method