Couldn't you make this a field in the struct?