Modified Order Search to be flexible.