Adding method to send notifications if necessary