Converted to use int mode method