All those variables are global, they should be in the zibase object.