Added check to make sure start date before end date.