Add putBuffer method