Add comment to explain function