Diesel understood thermodynamics and the theoretical and practical constraints on fuel efficiency. He knew that as much as 90% of the energy available in the fuel is wasted in a steam engine. His work in engine design was driven by the goal of much higher efficiency ratios. After experimenting with a Carnot Cycle engine, he developed his own approach. Eventually, he obtained a patent for his design for a compression-ignition engine. In his engine, fuel was injected at the end of compression and the fuel was ignited by the high temperature resulting from compression.