Implemented a DataManager to keep track of all data.