Renamed functions to be more readable.