Added async task, improved JSON parsing