Switch back to imperative for listHardwareProfiles