What is the purpose of basting a roast? Is the purpose to add flavor, moisture, or both?

Do you really think it makes a difference?
The only thing I have ever found basting a roast does is increase the time it takes my food to cook because I keep opening the oven door.  I don't buy that it helps with flavor or moisture.