Added reset and basic conditions