Changed URL parsing to <anything>.<anything>[anything] and included
catching errors if it doesn't work.