Added restart-on-input feature. Modified some simulations.