Renamed to make clear this is generic code