Used AsyncTask correctly to eliminate lag when pressing 'Download'