Added missing utility function.