Added dependency injection to ESDataManager