Added send notification logic