Better edge cases handling in blockwise operations.