More flexible; more streamlined handling of even windows.
Fix assert.
Code cleanup.
const qualifiers.