Partially added support for interactive shell.