Fixed a lot of the API interaction code