The machinery of the Holocaust was evolved from the Himmler's (initially Heydrich's direct responsibility, until his death) SS Einsatzgruppen mass killings during the eastern invasions, which were its primary purpose, beginning in occupied Poland with the killings of intelligentsia and others, particularly Jews.