Simplify reset function, so we can use it without checking autoreset setting.