Corrected sleep during results waiting loop