Third algorithm selection added.