Auto buffer and unbuffer utilities.