Added code for getting notifications