Debugged sysmon_toggle.c and sysmon_log.c.