Handling background tasks version 1

Thanks for all comments! I will review/apply them later on today.