Second formal version of the bot almost complete.