Switch to condition variable for signaling.
Add bit-flag command for pull-up.