Made use of the ack function already implemented