Changed to input file coordinate system