Add option to auto-restart a closed input