Use prototype Delay method to respect seconds

We were using the standard setTimeout function which expects
miliseconds, not seconds.