On August 18, Tukhachevsky, in his headquarters in Minsk, some 300 miles (500 km) east of Warsaw, realized the extent of his defeat, quickly issuing the orders for the Red Army to retreat and regroup. He wanted to straighten the front line to improve his logistics, regain the initiative and push the Poles back again, but the situation had progressed beyond salvaging. His orders either arrived too late or failed to arrive at all. Soviet General Bzhishkyan's 3rd Cavalry Corps continued to advance toward Pomerania, its lines endangered by the Polish 5th Army, which had finally managed to push back the Red Army and switched over to pursuit. The Polish 1st Legions Infantry Division, in order to cut the enemy's retreat, carried out a forced march, going on the move for up to 21 hours a day, from Lubartów to Białystok—covering 163 miles (262 km) in only six days. Throughout that period, the division engaged the enemy twice. The division's rapid advance allowed it to intercept the 16th Soviet Army, cutting it off from reinforcements near Białystok and forcing most of its troops to surrender.