URL Checking Bug

This code definitely needs to be improved, when I have the time.