"[When I wrote], I'd be expanding on an idea and then I'd go back and I'd review it. So a lot of it you can hear train wrecks as you're playing through the song -- I'm just working and trying stuff. Then I'd come back, as you say, and extract what appeared to be the shining bits, if you like, as opposed to the bits, and then I'd lace them together. That's how the sequence of the song would arrive."
January 1, 1970
https://en.wikiquote.org/wiki/Jimmy_Page