Added logging to bot.