Got the Ack logic working