Correct numbers formatting.
Add tread safe structures.