Add comment explaining function