Updated formula with patch from Shigio YAMAGUCHI.