Refactored insert_subscription_variable