Added check of negative time window and hard min time window. 2h