Renamed functions to match examples