Added text functions and text input functions