Update mds.c