Implemented filterNot functionality