This procedure must be invoked once before use other commands

It initialize some internal structures. Must be called from the main thread of the program.