Added smartdm for the gift model