buf: Is this the function you were looking for?