Added parameters @StartDate and @EndDate.