Trimmed back the functions in Filter Scripts