Added the zGenerate call in ZApi