Fix background service functionality.