Variable resetting simplified