Added tracking of when recording is on/off