relearning loop settimeout

Signed-off-by: Peter T <peterdev001@hotmail.com>