Added local zfunc