Made adjustment to update_pads and clear_devices