Turned the script into a filter