Added transformation of coordinates.