Added a helper function.