Refactored background tasks for clarification