Added an end event