What is the best way to solve a 'stack too deep' error with a function? Reduce number of variables Make an array or a struct and pass that