Loggign query, change sleep time.