Getting XAS scans working