Data generation initial code.