Windowing code written