Moving download and query functionality to goroutine.