Added a generic function to handle notfications!