Stupid me didn't remember that pass by value is a bad idea. Using pointers for the filters now.