Added get_subscription function