Added methods and structure for validation and running of the bot.