Started writing code for interactive mode.