Some minor modifications in the script.