Modified simulator to add autoplay. Adjust delay at line 26