Add filter mode for zero, one and m-1