Copy to buffer works