Logging tweaks.
Timer tweaks + tests.
Extract 'run_shell_command'