Initial draft of windowing processing