Added functionality to check URL.