Change security logic