Added transform logic with window buffers