[MZ] Don't use deprecated functions.