Adds variable key_length to play around with