Added BufferThread class as a stub