The coaching inn was a vital part of Europe's inland transport infrastructure until the development of the railway, providing a resting point for people and horses. The inn served the needs of travellers, for food, drink, and rest. The attached stables, staffed by hostlers, cared for the horses, including changing a tired team for a fresh one. Coaching inns were used by private travellers in their coaches, the public riding stagecoaches between one town and another, and the mail coach. Just as with roadhouses in other countries, although many survive, and some still offer overnight accommodation, in general coaching inns have lost their original function and now operate as ordinary pubs.