Updated logic for the subscription expired method.