Add utility function for debugging.