Update km.c