Renamed helper function