Update ksm.c