Add comment for formatting logic