Added a helper function for future use.