It both lubricates the peg shaft so it turns easily in the pegbox and provides friction to keep the pegs from slipping with the force of string tension. Tuning pegs that are well fitted and properly doped will both turn smoothly throughout an entire rotation and hold firmly wherever the player wishes.