Add comment to document function's purpose