Added the logic for GetDeviceDefinitions and AddLogicalDevice