Added zflag signal. conditional logic
Hooked up zflag to statusSignals