Fix docs (returns nil, not 0)
Generate, set, and store client IDs