Split function.