Track per-device information in the presence code.