Fixed declaration of delay() function.