Added killing to algorithm.