Added 2 additional cases to connector's set method.