Add autodetection for device and resume script.