Made the date generator configurable.