Getting rid of some code duplication
Update functionality for jobs