Added support to filter in instead of only out