Still refactoring data generation code to support flapping data generation.