Update zfunctions