Improved background tasks