Aqueducts provided water that was later heated for use in the baths. The segregation of the sexes and the additions of diversions not directly related to bathing also had a direct impact on the shape and form of bathhouses. The Spartans developed a primitive steam bath. During the later Greek civilization, bathhouses were often built in conjunction with athletic fields. Fees for both types of baths were quite reasonable, within the budget of most free Roman males. The various parts of the bathing ritual undressing, bathing, sweating, receiving a massage and resting , required separated rooms which the Romans built to accommodate those functions. Most contained an apodyterium — a room just inside the entrance where the bather stored his clothes.