Switched to using syslog
Added debug syslog output