Coordinate transformation now working