Split out script.