Add delay to trigger race condition
Add thread logging