In 1910, the Öls–Adelnau–Ostrów line / Oleśnica–Odolanów–Ostrów Wielkopolski line that shortened the connection between Wrocław–Łódź and Warsaw was opened. Construction of the prototype of the long series 5-axle Prussian cargo locomotive G10 (PKP class Tw1) with exchange chamber with steam locomotive P8 (PKP class Ok1) by Garbe took place the same year. Three years later, production of cargo locomotive G8.1 of the Prussian state railways (PKP class Tp4) in the F. Schichau factory in Elbing commenced. Final production figures were 5267 items (459 items by PKP). That was the second longest locomotive series in Europe.