Make coordinate system specification more robust