Add Delay Function

Not sure that is great advice @sarkar. You should set any delay with a clock timer.