Added receiveAck method