Added WaitForEntries - waits for entryChannel to be empty.