Added simple filtering.