Add rest function and delay only after sending all