Increased the amount of loops.

Mainly done to make the avarages more accurate.
Fixed leading whitespace.