Made some properties atomic to prevent bad access from multiple threads.