Update event subscription code