Probably useful to specify a range to restrict it to one segment at a time. Only worth the effort if there is a ready-to-use library.