Removed device set_configuration and reset calls, because they were causing issues on MacOSX