Added text writing option.