Support altering the shift and window size.

Need to recalculate edge to avoid edge effects.