Add own test for starting state.
Add test for restarting the wait period after changing the Sone.
Add test case for locking and unlocking a Sone.
Simplify some boolean expressions.
Remove unnecessary return.
Remove some unnecessary local variables.
Declare variables closer to where they’re first used.
Skip redundant initialization.
Don’t change the configuration after starting the core.
Close all input streams after parsing templates.