Refactoring of code. Problem with AshyncTask, crashes the emulator.