Copy from tso-buff