Optimized running background tasks
Merge pull request #3 from adrik/master

Optimized running background tasks