Added time window logic for all timewindows