Implementing an interactive mode.