The Mongols invaded Europe with three armies. One of the three armies was tasked with distracting Poland, before joining the main Mongol force invading Hungary. The Mongol general in charge, Subutai, did not want the Polish forces to be able to threaten his flank during the primary invasion of Hungary. Thus, the Mongol goal was to use a small detachment to prevent the Poles from assisting Hungary until the Hungarians were defeated. That army, under Baidar, Kadan and Orda Khan, began scouting operations in late 1240. Though the Mongols may have entered with relatively modest goals and forces, they almost completely annihilated all Polish forces and influenced the Bohemian army to defend its homeland instead of assisting the beleaguered Hungary.