Implemented more general filter array