Add a 1 sec sleep per loop to avoid hogging resources