diff --git a/examples/main.c b/examples/main.c
index 0ceba6ce75474ba8c0e5889366a57f1ea892bcee..8e9ee1e05c4e1339f8662bfb31fa9b8eff70bb1c 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -607,7 +607,8 @@ int main(int argc, char *argv[]) {
   /* What command should we run to resubmit at the end? */
   char resubmit_command[PARSER_MAX_LINE_SIZE];
   if (resubmit_after_max_hours)
-    parser_get_param_string(params, "Restarts:basename", resubmit_command);
+    parser_get_param_string(params, "Restarts:resubmit_command",
+                            resubmit_command);
 
   /* If restarting, look for the restart files. */
   if (restart) {
diff --git a/examples/parameter_example.yml b/examples/parameter_example.yml
index 218a3cb2b896ac70ccf4a053a745719d0b2e671a..05102e8a948c6b79a2e5f3c4aaac062c536f1b88 100644
--- a/examples/parameter_example.yml
+++ b/examples/parameter_example.yml
@@ -114,15 +114,16 @@ InitialConditions:
 
 # Parameters controlling restarts
 Restarts:
-  enable:             1        # (Optional) whether to enable dumping restarts at fixed intervals.
-  save:               1        # (Optional) whether to save copies of the previous set of restart files (named .prev)
-  onexit:             0        # (Optional) whether to dump restarts on exit (*needs enable*)
-  subdir:             restart  # (Optional) name of subdirectory for restart files.
-  basename:           swift    # (Optional) prefix used in naming restart files.
-  delta_hours:        6.0      # (Optional) decimal hours between dumps of restart files.
-  stop_steps:         100      # (Optional) how many steps to process before checking if the <subdir>/stop file exists. When present the application will attempt to exit early, dumping restart files first.
-  max_run_time:       24.0     # (optional) Maximal wall-clock time in hours. The application will exit when this limit is reached.
-  resubmit_on_exit:   0        # (Optional) whether to run a command when exiting after the time limit has been reached.
+  enable:             1          # (Optional) whether to enable dumping restarts at fixed intervals.
+  save:               1          # (Optional) whether to save copies of the previous set of restart files (named .prev)
+  onexit:             0          # (Optional) whether to dump restarts on exit (*needs enable*)
+  subdir:             restart    # (Optional) name of subdirectory for restart files.
+  basename:           swift      # (Optional) prefix used in naming restart files.
+  delta_hours:        6.0        # (Optional) decimal hours between dumps of restart files.
+  stop_steps:         100        # (Optional) how many steps to process before checking if the <subdir>/stop file exists. When present the application will attempt to exit early, dumping restart files first.
+  max_run_time:       24.0       # (optional) Maximal wall-clock time in hours. The application will exit when this limit is reached.
+  resubmit_on_exit:   0          # (Optional) whether to run a command when exiting after the time limit has been reached.
+  resubmit_command:   ./resub.sh # (Optional) Command to run when time limit is reached. Compulsory if resubmit_on_exit is switched on.
 
 # Parameters governing domain decomposition
 DomainDecomposition: