In June 1918 he was head of the publishing house of the All-Russian Central Executive Committee in Moscow. During the Left SR revolt in July, he led the security of the Kremlin and the Bolshoi Theater which hosted the V All-Russian Congress of Soviets.