Added getCoords() function