Close to completed map-seeking circuit algorithm.