Adding more debug outputs.
We need to set the key length too.