Updated code for AFNetworking 2.0