Added logging to syslog