Added the delay prameter