Update CaptureMain.java