Added support for filtering results.