Are you getting your debug prints? I noticed that wait is in the setup, so it will not change unless you reset.