You’re comment about it outputting 50 times indicates a problem. It seems that this function is triggering some type of an infinite loop, which this filter should not be doing on it’s on. what other filters do you have in place on the two fields involved? dependency and questions?