Added code to do the ack/completion dance.