Improved scripts and wrote new ones.