Added getInstanceName function, refreshed and copied the newer basefunction out of dev folder