And fixed the first algorithm.