Add check for ack on write