Crashes on long inputs.