Add a helper function.