Merged different version of scripts.