Working bot, slightly tested