At first, the producer of band Joy Division, Martin Hannett, was supposed to produce (help record) the album, but he was sad about the suicide of Ian Curtis, so he did not help record the album. It was produced by Steve Lillywhite, and recorded in a Dublin studio called Windmill Lane Studios. Some songs were written in the studio, like "An Cat Dubh" and "The Ocean". Some other songs had already been written, and U2 were performing them often, like the songs "Stories for Boys", Out of Control", and "Twilight". The Edge, U2's guitarist, recorded all of the songs using his Gibson Explorer guitar and his Fender Stratocaster guitar.