Attempted to fix script file problems.