Add split mode function