Added reset and resetdevice to optional arguments