Handling background tasks version 2