Added some code to do notifications

Need to convert it so that it runs in the background