Implemented recording/playing and fixed calibration.