Correcting Program for Delay analysis