Code improvements in idManager code, to be consistent with the socket version.
Partiaal not working version of E3v1-Socket