Added support for events in Device object