Add function to do generic GET requests.