Refactored ServerActivity to AsyncTask