Add interactive mode with readline.