Add logging. Make bash script to launch from cron