Changed GetCsumbGpsCoords function to be more generic and reusable