Slight optimization, and comment explaining approach.