Added clarification as to what the code was doing.