Custom query support.