toBuffer implementation work in progress.