Updated Script and cleaned up to read better.