Rename some methods. Add STC calculation and test.
New math function. New tests. Refactoring.