Added debug tools. Added text input