Better management of user-defined filter functions