Added SoTimeout so the scanner doesn't get hanged up when grabbing the HTML page, set SoTimeout to 2 seconds (reasonable time)