Added KFCM code