Final version. Add Kassiski for progressive key.