Im going to see soon. I think its the While loop. But it still seems to be hanging.
Edit: Sigh... It was an infinite loop... It was because I converted a For Loop.
Do you have a better way to detect the following URL types?:
http://www.test.com/folder/subfolder/
www.test.com/folder/subfolder/
test.com/folder/subfolder/
test.com