Added increase key algorithm.