In 1819, he wanted to automate math calculations and was inspired by the French logarithmic tables. He also wanted to help the British Navy with motivation, and he wanted to do this with a mechanical machine called the Difference Engine. Still, he underestimated its cost and ultimately could only create a prototype. Nonetheless, he still started thinking about an Analytical Engine that could perform general calculations with any mathematical operation; however, in 1834 when he asked the prime minister for funds, he was rejected. He also wrote On the Economy of Machinery and Manufacturers, describing the Bankers Clearing House in London and how they reduced the inefficiency by meeting at a clearing house and recording the amounts owed in a ledger.