Improved filter scripting.