A forest railway, forest tram, timber line, logging railway or logging railroad is a mode of railway transport which is used for forestry tasks, primarily the transportation of felled logs to sawmills or railway stations. In most cases this form of transport utilised narrow gauges, and were temporary in nature, and in rough and sometimes difficult to access terrain. Before the railway was invented, logs were transported in large numbers from the forest down rivers either freely or on wooden rafts. This was not without its problems and wood was often damaged in transit, lost in floods or stranded in shallow water. Suitable rivers were often unavailable in mountainous terrain. Simple wagonways, using horses and wooden rails, were used from the 18th century. However the invention of the steam locomotive and steel rails soon led to these being employed for forestry. However the difficult terrain within forests meant that narrow-gauge railways, which took up less space, were lighter and easier to build and enabled tight curves to be laid, were preferred. These were the so-called forest railways. In particularly large areas of forest or forests of unusually large trees, such as in the northwestern USA, extensive forest railways were even built using standard gauge exclusively for forestry tasks. Special geared locomotives such as the Shay and Climax locomotive were developed for high tractive effort on rough track. Some forest railways became common carriers when cleared forest land was converted to agricultural or recreational use. In cases where the railway itself was considered very short-term, or the region was extremely difficult to access, logs would often be laid into the ground as a pole road, rather than the cost and logistics of laying steel rails and sleepers. Pole roads could be extensive; several examples in the southeastern United States extended up to 20 miles at the end of the nineteenth century, and used purpose-built steam locomotives. In addition to steam traction, diesel and petrol-driven locomotives were also used later on.