Added the --log_k feature.