Add function for notify