ENH: Implemented single shot recording, as well as changing recording file on the fly.