Reworked errorDelay so it actually compiles.