Adjusting timing and delay code