Add event function .