Apply script to master