Added basic text writing.