Replaced STD stub with actual formula.