Now with windoed encoding