Factor out [[advanceBuffer]] in BWS. Closes #84.