Added REST call to deliver messages.