 It was a very slow process. The most advanced adding machines, you turn the crank. And turning the crank, slowly the gears would perform addition and subtraction. Well, that was stage one. Stage two happened because of World War II. The Germans had fielded a new kind of code, a machine called the Enigma, and they were able to transmit information and instructions to the far-flung Nazi empire.