Moved Asynctask to connection.