Made utility function private.