Updated interactive_console code