Remved internal log function as it seems not to work with internal cron job