Integrated throttling code into main bot