Renamed functions for more clearity.