Modified CloseGapsComplex