Delay function is added