Improved diagnostics in filters