Add support for filtering inversion via a block callback