Change BufferData to use interface{}