First implementation of the recording feature