Change handling namespaces. Trigger function now can call events with namespaces.