A custom version of ztype