Since you're editing this code, could we make this a const reference?