Update sfm.m