First-draft zpt_gridz functions