Renamed functions as Matlab expects