The Algorithm.