Thanks. I wasn't timing my program because it took approximately 5 seconds to run. I thought I tried removing the DOCTYPE to see if that was the problem, but now when I remove it, the results appear instantaneously, so you were right: the problem was my connection.