Handling background tasks version 1