Adding isthmus detection