Maybe you could use setRange here?