In the medieval period, peasants primarily heated their homes using a central open hearth or fire pit located in the middle of the main living area. Because most peasant huts (crofts) lacked chimneys, smoke would circulate through the rafters and eventually seep out through a hole in the thatched roof or through the porous walls. While this made the air smoky, the soot actually helped preserve the roof timbers and acted as a natural pesticide against insects. Beyond fire, peasants relied heavily on "animal heat." It was common for livestock, such as cows or pigs, to be kept in an attached section of the house or even in the same room behind a low partition; the collective body heat of the animals provided a significant thermal buffer against the cold. Additionally, families would sleep together on straw pallets or "featherbeds" to share body heat, and homes were often built with low ceilings and thick wattle-and-daub walls to trap as much warmth as possible during the harsh winter months.