Added error parameter to callback function in order to accommodate situations where all IP lookup requests fail.