Change GearBasePath to function call