Refactoring background tasks.
Refactor download
Change classpath and ignore