In June 1919 he was moved to the demobilization office of the 2nd Infantry Regiment. Around this time the German military command released an edict that the army's main priority was to "carry out, in conjunction with the police, stricter surveillance of the population ... so that the ignition of any new unrest can be discovered and extinguished." In May 1919 Karl Mayr became commander of the 6th Battalion of the guards regiment in Munich and from 30 May the head of the "Education and Propaganda Department" (Dept Ib/P) of the Bavarian "Reichswehr", Headquarters 4. In this capacity as head of the intelligence department, Mayr recruited Hitler as an undercover agent in early June 1919. Under Captain Mayr "national thinking" courses were arranged at the Reichswehrlager Lechfeld near Augsburg, with Hitler attending from 10–19 July 1919. During this time Hitler so impressed Mayr that he assigned him to an anti-bolshevik "educational commando" as 1 of 26 instructors in the summer of 1919.