Fixes GH-145: add support for stack filtering.