Added startdate and enddate