Rewritten most part of the math things on the report.