Scopebuffer

Added inout for slices
Nitpick: Could you keep the line spacing to single. That's how it is in the rest of the module.

Otherwise, LGTM. I'll give it a merge tomorrow if no one objects by then.