Added method getSubscriptions and integrated with other methods