Added some definitions.
Updated put_text.