BAT plugin