Event handling, and plugin service