Changed coordinate conversion.