Improved botmode mechanics