Save and refresh devices.