Add a function to get the buffer list. Courtesy of osse.