Last attempt to debug Lab 5. Multi-thread tests pass but not all the time.