Add first implementation of interactive mode.