Changing the geomOpt method so we can aviod awkward geometries