Add a background task API