Add debugging prints to sendNotification