Add an timeout function to the notifications