Pass callback to filter function to handle result