Please add comment explaining what this function does.