Added check for $data->Error