Add script filter functionality