Added initBuffer()