Updated cmdclient to use new registration logic.