Added setIf() and reset()