Added endDate a nullable field