Define scope for events