Now works with a text input with history!