Implemented ekgCapture