Added the event.fire function