Harry Potter author JK Rowling has revealed she is finishing writing the final book on the boy wizard as she began the very first tale - in cafes.
JK Rowling has homes in Edinburgh and Perthshire
The writer has amassed a £540m fortune after starting to write about Harry in an Edinburgh cafe 13 years ago.
Now the author, who has homes in the Scottish capital and Perthshire, has gone back to Harry's beginnings for inspiration as his story nears its end.
She made the revelation while writing on her own website.
She said: "For years now, people have asked me whether I ever dream that I am 'in' Harry's world.
"The answer was 'no' until a few nights ago, when I had an epic dream in which I was, simultaneously, Harry and the narrator.
"I was searching for a Horcrux in a gigantic, crowded hall, which bore no resemblance to the Great Hall as I imagine it.
"Meanwhile, waiters and waitresses who work in the real cafe in which I have written huge parts of book seven roamed around me as though on stilts, all of them at least 15ft high. Perhaps I should cut back on the caffeine?"
Rowling has previously told on the website about how she began to write in cafes.
"Whenever Jessica (her first child, now aged 13) fell asleep in her pushchair I would dash to the nearest cafe and write like mad. I wrote nearly every evening."
In her latest blog on her website Rowling said she had been working hard on the last book.
"The long lack of updates has been due to some very hard work. I'm now writing scenes that have been planned, in some cases, for a dozen years or even more," she said.
"I don't think anyone who has not been in a similar situation can possibly know how this feels: I am alternately elated and overwrought. I both want, and don't want, to finish this book (don't worry, I will)."