Added output and modifed scrit