Added option to limit results by divisibility of period