In the mid- to late 18th century, heat was thought to be a measurement of an invisible fluid, known as the caloric. Like phlogiston, caloric was presumed to be the "substance" of heat that would flow from a hotter body to a cooler body, thus warming it. The utility and explanatory power of kinetic theory, however, soon started to displace the caloric theory. Nevertheless, William Thomson, for example, was still trying to explain James Joule 's observations within a caloric framework as late as 1850. The caloric theory was largely obsolete by the end of the 19th century.