Copied code from MiscDemo for data manager to HealthTracker.