First attempt at bringing over timewindowij