Addition to check that the events correspond to the same deviceId