"I set out to write 'A History of Atheism' ... and for a large part that's what I did".
I began with the intention of writing 'A History of Atheism', and as a result, I was able to complete most of it.