implemented in C functions: stop(), run(), run_t(), commitChanges(), setPeriod(), resetAll().