Changed how the split functionality is done.