Add duplicate function for events