Implemented windowing