Update filter code