Add serialize
Add buffer methods