added sleep between queries