Untested version with sampling fo, updated parameters.extrapol