Added the ability for switchlets to watch events at runtime.