Worth a helper function.