Introducing window_depth(i, depth)