Added logging and monitoring to the bot control.