Changed the async task to use the new server apis