Leonardo da Vinci invented an automated system for a rotating spit for spit-roasting: a propeller in the chimney made the spit turn all by itself. This kind of system was widely used in wealthier homes. Beginning in the late Middle Ages, kitchens in Europe lost their home-heating function even more and were increasingly moved from the living area into a separate room. The living room was now heated by cocklestoves, operated from the kitchen, which offered the huge advantage of not filling the room with smoke.