Added a load of assertions in the zebraapi.c, so now most arguments should be