Update [[Register]] algorithm to deal with multiple register/unregister calls in succession