Drawing on their experience with waterwheels, which were originally used for milling grain, medieval engineers adapted mechanical devices like the camshaft and crank to use waterpower for a wider range of tasks, from fulling cloth to forging iron. Also, look at construction cranes, pile drivers, and other labor-saving devices that helped mechanize the medieval world, setting the stage for the Industrial Revolution.