Remove debug prints, validate enddate