Membership logic.