Added k command
Enabled k command
Improved performance of the k command.