Added reset functionality to perform experiment repeatedly.