Created a new Function to check for subscriptions