Room and pillar or pillar and stall is a mining system in which the mined material is extracted across a horizontal plane, creating horizontal arrays of rooms and pillars. To do this, "rooms" of ore are dug out while "pillars" of untouched material are left to support the roof – overburden. Calculating the size, shape, and position of pillars is a complicated procedure, and an area of active research. The technique is usually used for relatively flat-lying deposits, such as those that follow a particular stratum. Compared to other underground mining techniques, room and pillar mining is relatively simple, lends itself to mechanization, and can reduce the risk of surface subsidence. But recovery and profits are lowered by the need to leave portions of ore in the pillars. Room and pillar mining was one of the earliest methods used, although the manpower needed has sharply declined.