Update gdm.m