Renamed and edited for readability