Added code to check the subscription status