Added a fire event function