Restored analysis script functionality, major refactor of DataStore code.