Split script functionality