Helper functions for splitting.
First stab at split.
Split functionality (untested).