Merging scripts