Outline of Ack function code.