Make key ID last argument from keygen function.