Rationalize code in addmembers