Some bugfixes and improvements to the distributed data store.
Improvements to checks.