Wait for the command