Changed unset to reset to be idiomatic.