fix #6. Add customizable filtering of what buffers to save.