The last argument should be Double_val(delay)