Now works with AsyncTask and modified logging. logging needs fix and..maybe more stuff