Code refactored to allow for testing of master responding when ZK isn't ...

...running
Here and below, since there are no bodies, you can just use {} instead of {\n\n}