WIP refactor: text can now be inserted into empty buffers.