Started adding code for recording.