Treetop detection is an AsyncTask now, so that the UI thread is not
blocked.