Added a split function.