Tentative fix of sequential algo.