How to use the notifications function?