Oops, good catch. I pulled the csv writing code from the client class into here to use as a reference, and completely forgot to remove the function when I was finished.