Some localisation on the utils submodule.

Remove a power of ten calculating loop since it can be precalculated easily.