Add isAcknowledged function