Removed adaptToDevice.