Change packet algorithm.