Updated device management to use new event APIs.