Cleaned up a bit. Kasiski still doesn't work...