zCall implementation from iainrb/devel