Keep track of device events