Added support for text filtering.