Added code for generating test data.