Custom middleware and mask options now function correctly with Model-scoped searches.