Refactors background job