Add split function.