Automatic end reset