Added check for supported urls. (invalid urls can still be given)