Put tick loop in AsyncTask