Improved interactive shell script