Made databuffer scope global