Been fiddling with Paul's submission to figure out why it segfaults. I am a bit mystified :(