Added option to toggle use of the DSML gateway