Fixing and improving scripts.