Rewrite of save state directory monitoring.