Mechanical drives can be designed to run smoothly, with little loss of energy to heat. Machines for conversion of energy contained in fuels to mechanical work or electric energy produce large amounts of waste heat (see: Second law of thermodynamics). 