Updated to use requests.