Update xCapture.R