CLI support for k averaging