Renamed three functions to enhance readablity.