Reimplement sbx according to paper.
Compilation fix.