Changing CacheManger to use AsyncTask instead of Thread.