private static void RegisterForEvents()
 {
     Events.Clear();
     EventInterface.RegisterForAllEvents();
 }