Added support for setting beginning and ending pages in search by flags