Replaced dispatch_async networking code with AFNetworking calls