Make 'startDate' and 'endDate' optional.