Added Events

Added events for plugins to hook into.