Adding missing code to clear the ack.