Cool algorithm.