Forgot delay and a bunch of #ifdef DEBUG