Refactored into bgRecorder, refactoring saver
Merged into master