Added a better function to generate some test data.