Added k and k3 modes.