Added support for post-query result filtering