Added output for script and main funct