Added functionality for server communications and location fetching