Fixed code for CaptureInterface