Updated to use the wget lookup method