Update logic for worker