added event option to set endtime to starttime.