Added function for url problem.