Added networking and JSON retrieval