Math split into more lines, easier to understand
More verbous logging