Passing DeviceOptions to the event handlers