Use Thread instead of AsyncTask since it just doesn't run sometimes