Add singlesidebuffer function