Better logging

Logging now takes place from crontab