Add delay test. Debug delay and get it working.