Fixes to block function, internal rounding