Renamed apppath parameter to appPath