Adding logic to remove proxy node