Interactive mode function in isolation.