I think I can actually just use class instance variables here. I couldn't initially because of how I had written something else, but I think they work now.