The final task of the Einsatzgruppen in Poland was to round up the remaining Jews and concentrate them in ghettos within major cities with good railway connections. The intention was to eventually remove all the Jews from Poland, but at this point their final destination had not yet been determined.[30][31] Together, the Wehrmacht and the Einsatzgruppen also drove tens of thousands of Jews eastward into Soviet-controlled territory.[22]