Use a helper function.