Added the second notification type, and analyzed the incoming messages