Renamed newFunc to extendedFunc