Modularized bot code.