Add qmin and qmax control