Removed redundant WaitForAck function