Update custom filter code