Added xy() function to get/set coords.