Implementing proper zero-checking.