Add ability to save at a configured interval and to set a buffer for the last save call