Now clears out the old list of devices when calling get_devices(). Not doing so caused issues in some cases.