Over time, Auschwitz had to almost stop accepting new prisoners and most were directed to Mauthausen instead. The last group – roughly 10,000 prisoners – was evacuated in the last wave in January 1945, only a few weeks before the Soviet liberation of the Auschwitz-Birkenau complex. Among them was a large group of civilians arrested by the Germans after the failure of the Warsaw uprising, but by the liberation not more than 500 of them were still alive. Altogether, during the final months of the war, 23,364 prisoners from other concentration camps arrived at the camp complex. Many more perished from exhaustion during death marches, or in railway wagons, where the prisoners were confined at sub-zero temperatures for several days before their arrival, without adequate food or water. Prisoner transports were considered less important than other important services, and could be kept on sidings for days as other trains passed.