Added CheckURL function
Integrated checkURL function