Update StreamRecorder.cs