Better support for background tasks.