Updated Script and included Output Text File