Wait for commands