Renamed function to eliminate side-effect